package customer_relation_manage;

public class AddCustomer {
	/*
	 * 实现添加功能，在末尾添加客户
	 */
	public static void addCustomer(Customer customer){
		if (customer!=null) {
			Init.clist.add(customer);	
		}
		else{
			System.out.println("The customer added is empty,can not add");
		}
	}
	
	public static void addCustomer(int id,String name,int sex,String birthday,String address,String call){
		if (name!=null) {
			Customer customer=new Customer(id, name, sex, birthday, address, call);
			Init.clist.add(customer);
		}else{
			System.out.println("The customer's name is empty,can not add");
		}
		
	}

}
